﻿@{
    ViewBag.Title = "PrepareListClass";
    Layout = "~/Views/Shared/_ScheduleClass_View.cshtml";
}

@section headerPartial {
    <div class="modal fade" id="myModalUserInfo" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false">
        <div class="modal-dialog">
            <div class="modal-content" id="modal1">
                <div class="modal-header">
                    <button id="btnClose" type="button" class="close" data-dismiss="modal" style="display: none;">
                        ×
                   
                    </button>
                    <div class="modal-title">
                        <b>完善信息，免费获得排课秘籍</b>
                    </div>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" role="form">
                        <div class="form-group">
                            <label for="list_school_name" class="col-sm-2 control-label">*学校全称</label>
                            <div class="col-sm-9" style="height: 55px;">
                                <div>
                                    <input id="list_school_name" type="text" class="form-control" placeholder="学校全称" aria-describedby="basic-addon1" maxlength="20"
                                        style="display: inline;">
                                </div>
                                <span id="inputError1" for="list_school_name" class="label label-danger" style="visibility: hidden">学校全称必填</span>
                            </div>
                            <br>
                            <br>
                            <label for="list_area" class="col-sm-2 control-label">*所在地区</label>
                            <div class="col-sm-9" style="height: 55px;">
                                <link rel="stylesheet" href="/Static/Template/css/city-picker.css">
                                <script src="/Static/Template/js/city-picker.data.js"></script>
                                <script src="/Static/Template/js/city-picker.js"></script>
                                <div data-toggle="city-picker" class="form-control city-picker-input">
                                    <input id="list_area" readonly="" type="text">
                                </div>
                                <span class="city-picker-span" style="width: 1425px; height: 34px; line-height: 33px;">
                                    <span class="placeholder">请选择地区</span>
                                    <span class="title1" style="display: none;"></span>
                                    <div class="arrow"></div>
                                </span>
                                <div class="city-picker-dropdown" style="left: 0px; top: 100%; width: 1425px;">
                                    <div class="city-select-wrap">
                                        <div class="city-select-tab">
                                            <a class="active" data-count="province">省份</a>
                                            <a data-count="city">城市</a>
                                            <a data-count="district">区县</a>
                                        </div>
                                        <div class="city-select-content">
                                            <div class="city-select province" data-count="province" style="display: block;">
                                                <dl class="clearfix">
                                                    <dt>A-G</dt>
                                                    <dd>
                                                        <a title1="安徽省" data-code="340000" class="">安徽省</a>
                                                        <a title1="北京市" data-code="110000" class="">北京市</a>
                                                        <a title1="重庆市" data-code="500000" class="">重庆市</a>
                                                        <a title1="福建省" data-code="350000" class="">福建省</a>
                                                        <a title1="甘肃省" data-code="620000" class="">甘肃省</a>
                                                        <a title1="广东省" data-code="440000" class="">广东省</a>
                                                        <a title1="广西壮族自治区" data-code="450000" class="">广西壮族自治区</a>
                                                        <a title1="贵州省" data-code="520000" class="">贵州省</a>
                                                    </dd>
                                                </dl>
                                                <dl class="clearfix">
                                                    <dt>H-K</dt>
                                                    <dd>
                                                        <a title1="海南省" data-code="460000" class="">海南省</a>
                                                        <a title1="河北省" data-code="130000" class="">河北省</a>
                                                        <a title1="黑龙江省" data-code="230000" class="">黑龙江省</a>
                                                        <a title1="河南省" data-code="410000" class="">河南省</a>
                                                        <a title1="湖北省" data-code="420000" class="">湖北省</a>
                                                        <a title1="湖南省" data-code="430000" class="">湖南省</a>
                                                        <a title1="江苏省" data-code="320000" class="">江苏省</a>
                                                        <a title1="江西省" data-code="360000" class="">江西省</a>
                                                        <a title1="吉林省" data-code="220000" class="">吉林省</a>
                                                    </dd>
                                                </dl>
                                                <dl class="clearfix">
                                                    <dt>L-S</dt>
                                                    <dd>
                                                        <a title1="辽宁省" data-code="210000" class="">辽宁省</a>
                                                        <a title1="内蒙古自治区" data-code="150000" class="">内蒙古自治区</a>
                                                        <a title1="宁夏回族自治区" data-code="640000" class="">宁夏回族自治区</a>
                                                        <a title1="青海省" data-code="630000" class="">青海省</a>
                                                        <a title1="山东省" data-code="370000" class="">山东省</a>
                                                        <a title1="上海市" data-code="310000" class="">上海市</a>
                                                        <a title1="山西省" data-code="140000" class="">山西省</a>
                                                        <a title1="陕西省" data-code="610000" class="">陕西省</a>
                                                        <a title1="四川省" data-code="510000" class="">四川省</a>
                                                    </dd>
                                                </dl>
                                                <dl class="clearfix">
                                                    <dt>T-Z</dt>
                                                    <dd>
                                                        <a title1="天津市" data-code="120000" class="">天津市</a>
                                                        <a title1="新疆维吾尔自治区" data-code="650000" class="">新疆维吾尔自治区</a>
                                                        <a title1="西藏自治区" data-code="540000" class="">西藏自治区</a>
                                                        <a title1="云南省" data-code="530000" class="">云南省</a>
                                                        <a title1="浙江省" data-code="330000" class="">浙江省</a>
                                                    </dd>
                                                </dl>
                                            </div>
                                            <div class="city-select city" data-count="city" style="display: none;">
                                                <dl class="clearfix">
                                                    <dd></dd>
                                                </dl>
                                            </div>
                                            <div class="city-select district" data-count="district" style="display: none;">
                                                <dl class="clearfix">
                                                    <dd></dd>
                                                </dl>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <span id="inputError2" for="list_area" class="label label-danger" style="visibility: hidden">所在地区必填(省份、城市、区县)</span>
                            </div>
                            <br>
                            <br>
                            <label for="schoolType" class="col-sm-2 control-label">*学校类型</label>
                            <div class="col-sm-9" style="height: 55px;">
                                <div>
                                    <select id="schoolType" class="form-control">
                                        <option value="-1" selected="selected">选择学校类型</option>
                                        <option value="0">小学</option>
                                        <option value="1">初中</option>
                                        <option value="2">高中</option>
                                        <option value="3">完全中学</option>
                                        <option value="4">大学</option>
                                        <option value="5">培训机构</option>
                                        <option value="6">竞品公司</option>
                                        <option value="7">其他</option>
                                    </select>
                                </div>
                                <span id="inputError6" for="schoolType" class="label label-danger" style="visibility: hidden">学校类型必选</span>
                            </div>
                            <br>
                            <br>
                            <hr style="width: 100%; height: 1px; float: left;">
                            <div>
                                <label for="list_job" class="col-sm-2 control-label">*您的职务</label>
                                <div class="col-sm-9" style="height: 55px; width: 165px;">
                                    <div>
                                        <select id="list_job" class="form-control">
                                            <option value="-1" selected="selected">选择您的职务</option>
                                            <option value="0">教务处负责人</option>
                                            <option value="1">信息负责人</option>
                                            <option value="2">年级主任</option>
                                            <option value="3">教学组长</option>
                                            <option value="4">理科教师</option>
                                            <option value="5">文科教师</option>
                                            <option value="6">教学副校长</option>
                                        </select>
                                    </div>
                                    <span id="inputError7" for="list_job" class="label label-danger" style="visibility: hidden">职务必选</span>
                                </div>
                                <label for="list_age" class="col-sm-2 control-label">*您的年龄</label>
                                <div class="col-sm-9" style="height: 55px; width: 165px;">
                                    <div>
                                        <select id="list_age" class="form-control">
                                            <option value="-1" selected="selected">选择您的年龄</option>
                                            <option value="0">20岁-25岁</option>
                                            <option value="1">25岁-30岁</option>
                                            <option value="2">30岁-35岁</option>
                                            <option value="3">35岁-40岁</option>
                                            <option value="4">40岁-45岁</option>
                                            <option value="5">45岁-50岁</option>
                                            <option value="6">50岁以上</option>
                                        </select>
                                    </div>
                                    <span id="inputError8" for="list_age" class="label label-danger" style="visibility: hidden">年龄必选</span>
                                </div>
                            </div>
                            <br>
                            <br>
                            <label for="list_phone" class="col-sm-2 control-label">*联系电话</label>
                            <div class="col-sm-9" style="height: 55px;">
                                <div>
                                    <input id="list_phone" type="text" class="form-control" placeholder="联系电话" aria-describedby="basic-addon1" maxlength="11"
                                        style="display: inline;">
                                </div>
                                <span id="inputError3" for="list_phone" class="label label-danger" style="visibility: hidden">无效联系电话</span>
                            </div>
                            <br>
                            <br>
                            <label for="list_qq" class="col-sm-2 control-label">联系QQ</label>
                            <div class="col-sm-9" style="height: 55px;">
                                <div>
                                    <input id="list_qq" type="text" class="form-control" placeholder="" aria-describedby="basic-addon1" maxlength="20">
                                </div>
                                <span id="inputError4" for="list_qq" class="label label-danger" style="visibility: hidden">无效QQ号</span>
                            </div>
                            <br>
                            <br>
                            <label for="list_mail" class="col-sm-2 control-label">联系邮箱</label>
                            <div class="col-sm-9" style="height: 55px;">
                                <div>
                                    <input id="list_mail" type="text" class="form-control" placeholder="" aria-describedby="basic-addon1" maxlength="100">
                                </div>
                                <span id="inputError5" for="list_mail" class="label label-danger" style="visibility: hidden">无效联系邮箱</span>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
                    <button id="btn_save_user_Info" type="button" class="btn btn-primary" onclick="userInfoEditor.inputUserInfo()">确定</button>
                </div>
            </div>
        </div>
        <input type="hidden" id="oldProvince">
        <input type="hidden" id="oldCity">
        <input type="hidden" id="oldDistrict">
    </div>
    <script>
        var userInfoEditor = new UserInfoEditor();
        $('#myModalUserInfo').on('show.bs.modal', function (e) {

            $(this).find('.modal-dialog').css({
                'margin-top': function () {
                    $("#inputError1").css({ 'visibility': 'hidden' });
                    $("#inputError2").css({ 'visibility': 'hidden' });
                    $("#inputError3").css({ 'visibility': 'hidden' });
                    $("#inputError4").css({ 'visibility': 'hidden' });
                    $("#inputError5").css({ 'visibility': 'hidden' });
                    $("#inputError6").css({ 'visibility': 'hidden' });
                    $("#inputError7").css({ 'visibility': 'hidden' });
                    $("#inputError8").css({ 'visibility': 'hidden' });
                    jQuery.ajax({
                        type: "GET",
                        url: "/m/userInfo/getUserInfo",
                        cache: false,
                        success: function (ret) {
                            var info = JSON.parse(ret);
                            $(".city-picker-span").css("width", "100%");
                            $(".city-picker-dropdown").css("width", "100%");
                            if (info.area != null && info.area != "" && info.area != undefined) {
                                $("#list_age").val(info.area);
                                var areaArray = info.area.split("-");

                                if (areaArray.length >= 3) {
                                    $("span .placeholder").css("display", "none");
                                    $("span .title1").css("display", "");
                                    $("span .title1").empty();
                                    $("#oldProvince").val(areaArray[0]);
                                    $("#oldCity").val(areaArray[1]);
                                    $("#oldDistrict").val(areaArray[2]);
                                    $("span .title1").append("<span class='select-item' data-count='province'>" + areaArray[0] + "</span>-");
                                    $("span .title1").append("<span class='select-item' data-count='city'>" + areaArray[1] + "</span>-");
                                    $("span .title1").append("<span class='select-item' data-count='district'>" + areaArray[2] + "</span>");
                                } else if (areaArray.length >= 2) {
                                    $("span .title1").empty();
                                    $("span .placeholder").css("display", "none");
                                    $("#oldProvince").val(areaArray[0]);
                                    $("#oldCity").val(areaArray[1]);
                                    $("span .title1").append("<span class='select-item' data-count='province'>" + areaArray[0] + "</span>-");
                                    $("span .title1").append("<span class='select-item' data-count='city'>" + areaArray[1] + "</span>");
                                } else if (areaArray.length >= 1) {
                                    $("span .title1").empty();
                                    $("#oldProvince").val(areaArray[0]);
                                    $("span .placeholder").css("display", "none");
                                    $("span .title1").append("<span class='select-item' data-count='province'>" + areaArray[0] + "</span>");
                                }
                                $("#btnClose").removeAttr("style");
                            }
                            if (info.schoolName != null && info.schoolName != "" && info.schoolName != undefined) {
                                $("#list_school_name").val(info.schoolName);
                            }
                            if (info.phone != null && info.phone != "" && info.phone != undefined) {
                                $("#list_phone").val(info.phone);
                            }
                            if (info.qqNumber != null && info.qqNumber != "" && info.qqNumber != undefined) {
                                $("#list_qq").val(info.qqNumber);
                            }
                            if (info.userEmail != null && info.userEmail != "" && info.userEmail != undefined) {
                                $("#list_mail").val(info.userEmail);
                            }
                            if (info.ageArrange != null && info.ageArrange != undefined && info.ageArrange.toString() != "") {
                                $("#list_age").val(info.ageArrange);
                            }
                            if (info.jobType != null && info.jobType != undefined && info.jobType.toString() != "") {
                                $("#list_job").val(info.jobType);
                            }
                            if (info.schoolType != null && info.schoolType != undefined && info.schoolType.toString() != "") {
                                $("#schoolType").val(info.schoolType);
                            }
                        }
                    });
                    $("#list_school_name").focus(function () {
                        $("#inputError1").css({ 'visibility': 'hidden' });
                    });
                    $("#list_area").focus(function () {
                        $("#inputError2").css({ 'visibility': 'hidden' });
                    });
                    $("#list_phone").focus(function () {
                        $("#inputError3").css({ 'visibility': 'hidden' });
                    });
                    $("#list_qq").focus(function () {
                        $("#inputError4").css({ 'visibility': 'hidden' });
                    });
                    $("#list_mail").focus(function () {
                        $("#inputError5").css({ 'visibility': 'hidden' });
                    });
                    $("#schoolType").change(function () {
                        $("#inputError6").css({ 'visibility': 'hidden' });
                    });
                    $("#list_job").change(function () {
                        $("#inputError7").css({ 'visibility': 'hidden' });
                    });
                    $("#list_age").change(function () {
                        $("#inputError8").css({ 'visibility': 'hidden' });
                    });
                    var modalHeight = 580; // $('#myModal').find('.modal-dialog').height();
                    return ($(window).height() / 2 - (modalHeight / 2));
                }
            });
        });
    </script>

    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?7c66c07d4e8cc54deba8d7f967efe75b";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
        $(document).ready(function () {
            updateSchoolView();
        });
        function loadInputTable() {
            if (userInfoEditor) {
                userInfoEditor.showUserInfoInput();
            }
        }

        function updateSchoolView() {
            var schoolLabel = $("#label_school_name");
            jQuery.ajax({
                type: "GET",
                url: "/m/userInfo/getSchoolName",
                cache: false,
                success: function (ret) {
                    var userInfoButton = $("#btn_add_userInfo");
                    userInfoButton.css({ 'visibility': 'visible' });
                    if (ret.split(",")[0] == "") {
                        //从未填写过学校信息
                        userInfoButton.text("添加");
                        $("#btn_add_task").attr('disabled', true);
                        $("#btn_add_task_first").attr('disabled', true);
                        schoolLabel.text("学校: 未填写");
                        loadInputTable();
                    } else {
                        userInfoButton.text("修改");
                        $("#btn_add_task").attr('disabled', false);
                        $("#btn_add_task_first").attr('disabled', false);
                        schoolLabel.text("学校: " + ret.split(",")[0]);
                        if (ret.split(",")[1] == "") {
                            loadInputTable();
                        }
                    }
                    schoolLabel.css({ 'visibility': 'visible' });
                }
            });
        }
    </script>
}



<div id="divbody" style="min-height: 495px;">
    <div class="container" id="divcon">
        <link href="/Static/Template/css/preschedule.css" rel="stylesheet">
        <link href="/Static/Template/css/webuploader.css" rel="stylesheet" type="text/css">
        <style>
            #uploadMsg {
                font-size: 12px;
                color: red;
            }
        </style>
        <style>
            a.view-course-plan {
                padding-left: 25px;
                background-repeat: no-repeat;
                margin-left: 10px;
                text-decoration: none;
                padding-bottom: 5px;
            }



            li.pos {
                margin-left: 15px;
            }

            .list-inline a {
                text-decoration: none;
                padding-left: 25px;
                padding-bottom: 5px;
            }
        </style>
        <div class="row" style="margin-top: 20px;">
            <div class="col-md-8">
                <ul class="list-inline">
                    <li>
                        <a href="javascript:void()" id="baseInfo" onclick="goUrl(&#39;/m/baseInfo/index?taskId=2640188197994496&#39;)" class="task-baseInfo">基础信息</a>
                    </li>
                    <li class="pos">
                        <a href="javascript:void()" id="rule" onclick="goUrl(&#39;/m/rule/unScheduleRule?taskId=2640188197994496&#39;)" class="task-rule">规则条件</a>
                    </li>
                    <li class="pos">
                        <a href="javascript:void()" id="preAssignment" onclick="goUrl(&#39;/m/courseplan/preschedule?taskId=2640188197994496&#39;)"
                            class="task-preAssignment active task-preAssignment-active">预排</a>
                    </li>
                    <li class="pos">
                        <a href="javascript:void()" id="auto" onclick="goUrl(&#39;/m/courseplan/start?taskId=2640188197994496&#39;)" class="task-auto">自动排课</a>
                    </li>
                    <li class="pos" show-by-courseplan="1" style="display: none;">
                        <a id="adjust" class="task-adjust" href="http://paike.yunxiao.com/m/adjustTeaCoursePlan/teaTimeTable?taskId=2640188197994496#c">调课</a>
                    </li>
                    <li class="pos" show-by-courseplan="1" style="display: none;">
                        <a href="http://paike.yunxiao.com/m/courseplan/class?taskId=2640188197994496" id="task-coursePlan" class="task-coursePlan">查看课表</a>
                    </li>

                </ul>
            </div>

            <div class="col-md-2 col-md-offset-2">
                <div class="dropdown" style="float: right;">
                    <button id="btnQuestions" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-default dropdown-toggle">
                        排课遇到难题
                           
                        <span class="caret"></span>
                    </button>
                    <ul id="questions-list" class="dropdown-menu dropdown-menu-right" aria-labelledby="btnQuestions">
                        <li>
                            <a href="http://bbs.yunxiao.com/forum.php?mod=viewthread&amp;tid=3126&amp;extra=page%3D1" target="_blank">全校或者部分年级存在统一固定课可以用预排吗？</a>
                        </li>
                        <li>
                            <a href="http://bbs.yunxiao.com/forum.php?mod=viewthread&amp;tid=3126&amp;extra=page%3D1" target="_blank">希望某个老师固定某天有课该怎么办？</a>
                        </li>
                        <li>
                            <a href="http://bbs.yunxiao.com/forum.php?mod=viewthread&amp;tid=3126&amp;extra=page%3D1" target="_blank">什么情况下才会“预排”？</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        <script src="/Static/Template/js/course-plan.js" charset="utf-8"></script>
        <script>
            var coursePlanService = new CoursePlanService();
            var hasCoursePlan = 0;
            $(function () {
                initButton();
            })
            function initButton() {
                coursePlanService.hasCoursePlan(taskId, function (has) {
                    hasCoursePlan = has;
                    $("li[show-by-courseplan='1']").hide();
                    if (has == "1") {
                        $("li[show-by-courseplan='1']").show();
                    }
                })
            }
            </script>

        <script>
            function fillQuestion(list) {
                var html = new Array();
                for (var i = 0; i < list.length; i++) {
                    html.push("<li><a href='" + list[i].text + "' target='_blank'>" + list[i].title + "</a></li>");
                }
                $("#questions-list").html(html.join(""));
            }

            function getContentList(sign) {
                jQuery.ajax({
                    url: "/m/content?sign=" + sign,
                    type: "GET",
                    success: function (ret) {
                        if (ret) {
                            fillQuestion(ret);
                        } else {
                            $("#questions-list").html("<li><a href='http://bbs.yunxiao.com/forum.php?mod=forumdisplay&fid=36'" +
                                " target='_blank'>暂时没有内容，前往论坛</a></li>");
                        }
                    }
                })
            }
            </script>
        <div class="row" style="margin-top: 10px">
            <div class="col-md-7" style="padding-top: 10px">
                请将优先考虑的教师、课程预排入课程表中，云校排课会优先满足这些要求
               
            </div>
            <div class="col-md-5 text-right">
                <span id="uploadMsg"></span>
                <button id="uploderPicker" class="btn btn-primary btn-sm webuploader-container" style="font-weight: bold;">
                    <div class="webuploader-pick">
                        导入
                       
                    </div>
                    <div id="rt_rt_1ca9stm9scfs1prc8klul9fbo1" style="position: absolute; top: 5px; left: 10px; width: 24px; height: 18px; overflow: hidden; bottom: auto; right: auto;">
                        <input type="file" name="file" class="webuploader-element-invisible" multiple="multiple">
                        <label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label>
                    </div>
                </button>
                <a class="btn btn-primary btn-sm" style="font-weight: bold;" href="http://paike.yunxiao.com/m/preschedule/export?taskId=2640188197994496"
                    target="_blank">导出
                    </a>
                <button type="button" class="btn btn-primary btn-sm" style="margin-right: 10px; font-weight: bold; width: 70px;"
                    onclick="preview();">
                    预览
                   
                </button>
                <button type="button" class="btn btn-primary btn-sm" style="margin-right: 10px; font-weight: bold; width: 70px;"
                    onclick="clearPreschedule()">
                    清空
                   
                </button>
                <button type="button" class="btn btn-primary btn-sm" style="font-weight: bold; width: 70px;" onclick="save(true);">
                    保存
                   
                </button>
            </div>
        </div>

        <div style="margin-top: 10px; border-top: 1px solid #0599f7"></div>

        <!---------------------以上是头部------------------------------------------------->

        <div class="row" style="margin-top: 20px; padding-top: 5px">
            <div class="left-normal" id="left-fixed-div">
                <div class="table-top-line">
                    <ul class="list-inline form-group-sm">
                        <li>
                            <select id="selGrade" onchange="selectGrade()" style="width: 105px; font-size: 13px;">
                            </select>
                        </li>
                        <li>
                            <select id="selCourse" onchange="selectCourse()" style="width: 130px; font-size: 13px;"></select>
                        </li>
                    </ul>
                </div>
                <div id="teaching_plan_loading" class="alertInfo">加载中...</div>
                <div class="left-table">
                    <table class="table teaching-plan-table">
                        <thead>
                            <tr>
                                <th>课程</th>
                                <th>年级</th>
                                <th>班级</th>
                                <th>教师</th>
                                <th style="width: 50px;">课时</th>
                            </tr>
                        </thead>
                        <tbody id="tbody_teacher_plan_list"></tbody>
                    </table>
                </div>
            </div>
            <div class="right-table">
                <div class="table-top-line">
                    <ul class="list-inline" style="float: left">
                    </ul>


                    <div class="my-checkbox">
                        <label>
                            <input type="checkbox" id="chkOpenLessonTimesVerify" checked="true" onclick="checkDisabledLessonTimes();">启用校验
                           
                        </label>
                    </div>


                </div>
                <!--浮层-提示框-->
                <div id="alertDiv" class="alertInfo" style="display: none; opacity: 0.999932;">
                    <div class="alert alert-info">正在加载数据...</div>
                </div>
                <table class="table table-bordered">
                    <thead>
                        <tr style="background-color: #37abf1; font-size: 14.8px">
                            <th style="width: 50px"></th>
                            <th style="width: 114px;">周一</th>
                            <th style="width: 114px;">周二</th>
                            <th style="width: 114px;">周三</th>
                            <th style="width: 114px;">周四</th>
                            <th style="width: 114px;">周五</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td class="text-center">1</td>
                            <td id="lessonTime_area_0" onmouseover="overLessonTime(this,&#39;lessonTime_area_0&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;0&#39;)"></td>
                            <td id="lessonTime_area_7" onmouseover="overLessonTime(this,&#39;lessonTime_area_7&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;7&#39;)"></td>
                            <td id="lessonTime_area_14" onmouseover="overLessonTime(this,&#39;lessonTime_area_14&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;14&#39;)"></td>
                            <td id="lessonTime_area_21" onmouseover="overLessonTime(this,&#39;lessonTime_area_21&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;21&#39;)"></td>
                            <td id="lessonTime_area_28" onmouseover="overLessonTime(this,&#39;lessonTime_area_28&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;28&#39;)"></td>
                        </tr>
                        <tr>
                            <td class="text-center">2</td>
                            <td id="lessonTime_area_1" onmouseover="overLessonTime(this,&#39;lessonTime_area_1&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;1&#39;)" class="lesson-time-hover"
                                style="cursor: default;"></td>
                            <td id="lessonTime_area_8" onmouseover="overLessonTime(this,&#39;lessonTime_area_8&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;8&#39;)"></td>
                            <td id="lessonTime_area_15" onmouseover="overLessonTime(this,&#39;lessonTime_area_15&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;15&#39;)"></td>
                            <td id="lessonTime_area_22" onmouseover="overLessonTime(this,&#39;lessonTime_area_22&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;22&#39;)"></td>
                            <td id="lessonTime_area_29" onmouseover="overLessonTime(this,&#39;lessonTime_area_29&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;29&#39;)"></td>
                        </tr>
                        <tr>
                            <td class="text-center">3</td>
                            <td id="lessonTime_area_2" onmouseover="overLessonTime(this,&#39;lessonTime_area_2&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;2&#39;)" class=""
                                style="cursor: default;"></td>
                            <td id="lessonTime_area_9" onmouseover="overLessonTime(this,&#39;lessonTime_area_9&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;9&#39;)"></td>
                            <td id="lessonTime_area_16" onmouseover="overLessonTime(this,&#39;lessonTime_area_16&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;16&#39;)"></td>
                            <td id="lessonTime_area_23" onmouseover="overLessonTime(this,&#39;lessonTime_area_23&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;23&#39;)"></td>
                            <td id="lessonTime_area_30" onmouseover="overLessonTime(this,&#39;lessonTime_area_30&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;30&#39;)"></td>
                        </tr>
                        <tr style="border-bottom: 2px solid #ccc">
                            <td class="text-center">4</td>
                            <td id="lessonTime_area_3" onmouseover="overLessonTime(this,&#39;lessonTime_area_3&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;3&#39;)" class=""
                                style="cursor: default;"></td>
                            <td id="lessonTime_area_10" onmouseover="overLessonTime(this,&#39;lessonTime_area_10&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;10&#39;)"></td>
                            <td id="lessonTime_area_17" onmouseover="overLessonTime(this,&#39;lessonTime_area_17&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;17&#39;)" class=""
                                style="cursor: default;"></td>
                            <td id="lessonTime_area_24" onmouseover="overLessonTime(this,&#39;lessonTime_area_24&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;24&#39;)"></td>
                            <td id="lessonTime_area_31" onmouseover="overLessonTime(this,&#39;lessonTime_area_31&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;31&#39;)"></td>
                        </tr>
                        <tr>
                            <td class="text-center">5</td>
                            <td id="lessonTime_area_4" onmouseover="overLessonTime(this,&#39;lessonTime_area_4&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;4&#39;)"></td>
                            <td id="lessonTime_area_11" onmouseover="overLessonTime(this,&#39;lessonTime_area_11&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;11&#39;)"></td>
                            <td id="lessonTime_area_18" onmouseover="overLessonTime(this,&#39;lessonTime_area_18&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;18&#39;)" class=""
                                style="cursor: default;"></td>
                            <td id="lessonTime_area_25" onmouseover="overLessonTime(this,&#39;lessonTime_area_25&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;25&#39;)"></td>
                            <td id="lessonTime_area_32" onmouseover="overLessonTime(this,&#39;lessonTime_area_32&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;32&#39;)"></td>
                        </tr>
                        <tr>
                            <td class="text-center">6</td>
                            <td id="lessonTime_area_5" onmouseover="overLessonTime(this,&#39;lessonTime_area_5&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;5&#39;)"></td>
                            <td id="lessonTime_area_12" onmouseover="overLessonTime(this,&#39;lessonTime_area_12&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;12&#39;)"></td>
                            <td id="lessonTime_area_19" onmouseover="overLessonTime(this,&#39;lessonTime_area_19&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;19&#39;)"></td>
                            <td id="lessonTime_area_26" onmouseover="overLessonTime(this,&#39;lessonTime_area_26&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;26&#39;)"></td>
                            <td id="lessonTime_area_33" onmouseover="overLessonTime(this,&#39;lessonTime_area_33&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;33&#39;)"></td>
                        </tr>
                        <tr>
                            <td class="text-center">7</td>
                            <td id="lessonTime_area_6" onmouseover="overLessonTime(this,&#39;lessonTime_area_6&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;6&#39;)"></td>
                            <td id="lessonTime_area_13" onmouseover="overLessonTime(this,&#39;lessonTime_area_13&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;13&#39;)"></td>
                            <td id="lessonTime_area_20" onmouseover="overLessonTime(this,&#39;lessonTime_area_20&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;20&#39;)"></td>
                            <td id="lessonTime_area_27" onmouseover="overLessonTime(this,&#39;lessonTime_area_27&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;27&#39;)" class=""
                                style="cursor: default;"></td>
                            <td id="lessonTime_area_34" onmouseover="overLessonTime(this,&#39;lessonTime_area_34&#39;);" onmouseout="outLessonTime(this);"
                                areaname="lessonTimeArea" isdisabled="false" onclick="putCourseTo(&#39;34&#39;)"></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <!---->
        <div id="stepArea" style="height: 70px;">
            <div id="stepBox" class="text-right stepBoxFixed2" style="bottom: 0px;">
                <button type="button" class="btn btn-info btn-sm" onclick="save(false);goUrl(&#39;/m/rule/unScheduleRule?taskId=2640188197994496&#39;)">
                    上一步
                   
                </button>
                <button type="button" class="btn btn-info btn-sm" onclick="save(false);goUrl(&#39;start?taskId=2640188197994496&#39;)">
                    下一步
                   
                </button>
            </div>
        </div>


        <script src="/Static/Template/js/jquery-ui.js"></script>
        <link href="/Static/Template/css/jquery-ui.css" rel="stylesheet">

        <script>
            var taskId = 2640188197994496;
            </script>
        <script src="/Static/Template/js/preschedule.js" charset="utf-8"></script>
        <script type="text/javascript" src="/Static/Template/js/webuploader.js"></script>
        <script src="/Static/Template/js/preschedule-uploader.js" charset="utf-8"></script>

        <link href="/Static/Template/css/step-box.css" rel="stylesheet">
        <script type="text/javascript" src="/Static/Template/js/step-box.js"></script>
        <script>
            var _hmt = _hmt || [];
            (function () {
                var hm = document.createElement("script");
                hm.src = "https://hm.baidu.com/hm.js?7c66c07d4e8cc54deba8d7f967efe75b";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
            </script>
        <script>
            stepBox.init();
            $(function () {
                var uploader = new PrescheduleUploader();
                uploader.createUploader(taskId);
                $(".dropdown-toggle").dropdown();
                getContentList("qPreSchedule");
            })
            </script>

        <script>
            var isMyTask = true
            </script>


    </div>
</div>
